package com.nexus.all.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nexus.all.dto.CommentQueryDTO;
import com.nexus.all.model.Comment;
import org.apache.ibatis.annotations.Param;

/**
 * @author zxt
 */
public interface CommentMapper extends BaseMapper<Comment> {

    /**
     * 分页查询评论
     *
     * @param dto
     * @param page
     * @return
     */
    Page<Comment> queryComment(@Param("dto") CommentQueryDTO dto, Page<Comment> page);
}
